﻿using System;
using System.Linq;
using System.Linq.Expressions;
using RailNet.Dao.Entity;

namespace RailNet.Dao.Repository
{
    public interface IStationRepository
    {
        IQueryable<Station> All { get; }
        IQueryable<Station> AllIncluding(params Expression<Func<Station, object>>[] includeProperties);
        Station Find(long id);
        void InsertOrUpdate(Station station);
        void Delete(long id);
        void Save();
    }
}